// Josh made this

#ifndef TIGER_H
#define TIGER_H


#include "object.h"
#include "SFML\Graphics.hpp"
#include "Factory.h"
#include "TextureMap.h"


class TigerObject : public Object
{
protected:

	TigerObject() // Log constructer
	{
		tigerSprite = sf::Sprite(*TT::TextureLibrary[arrayText[4]]); // Loading the texture from slot 4 (5 in the array) for out new sprite.
		tigerSprite.setPosition(900, 300); // Setting the tiger sprites spawning position.
		tigerSprite.setOrigin(28, 17.5f);
	}

	void Render();

	void Update();

public:
	static TigerObject * Create(SFML_TEXTURE_HPP)
	{
		TigerObject *myObject = new TigerObject(); // Creating a new pointer to a new tiger object.
		Factory::AddObject(myObject); // Adding the new tiger to our object factory.
		return myObject;
	}

	static sf::Texture* tigerTex; // This is declaring the new texture for our tiger.
	sf::Sprite tigerSprite; // This is delcaring the new sprite for our tiger.
};



#endif //TIGER_H